package _c;

/*
    计算 1! + 2! + 3! + …… + 10!
 */
public class example2_18 {
    public static void main(String[] args) {
        int k = 1,sum = 0;
        for (int i = 1; i <= 10; i++) {
            k *= i;
            sum += k;
        }
        System.out.println(sum);
    }
}
